package com.xwnet.product.service.impl;

import com.xwnet.product.domain.ProductType;
import com.xwnet.product.mapper.ProductTypeMapper;
import com.xwnet.product.service.IProductTypeService;
import com.xwnet.basic.service.impl.BasicServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xw
 * @since 2022-08-25
 */
@Service
public class ProductTypeServiceImpl extends BasicServiceImpl<ProductType> implements IProductTypeService {
    @Autowired
    private ProductTypeMapper mapper;
    @Override
    public List<ProductType> getTypeTree() {

        return mapper.loadTypeTree();
    }
}
